<template>
    <div>
        <!-- 父传子 -->
        <ShowMessage title="标题" content="内容123456"></ShowMessage>
        <!-- attribute继承,组件是没有class属性的,会默认继承到组件的包裹div上,如果没有包裹则属性不生效 -->
        <ShowMessage class="li" title="标题" content="内容111116"></ShowMessage>
    </div>
</template>

<script>
import ShowMessage from './ShowMessage.vue'
export default {
    components: { ShowMessage },

}
</script>

<style lang="scss" scoped>
</style>